;(function () {
  'use strict';
  angular.module('controllers.accessSystem.auditDetails', [])
    .controller('auditDetailsController', auditDetailsController);
    function auditDetailsController($scope,CoreService){
    var spans = ['/failureTransactionAuditRecords','/assessmentResultsAuditRecords'];
    $scope.selectedIndex = CoreService.navgit(spans);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
}
})();